﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EDMDesigner.UIBusiness
{
    public class Configuration
    {
        private static object _lockObject = new object();
        private static Configuration _instance;

        private Configuration()
        {
        }

        public static Configuration Instance
        {
            get 
            {
                if (_instance == null)
                {
                    lock (_lockObject)
                    {
                        if (_instance == null)
                            _instance = new Configuration();
                    }
                }
                return _instance; 
            }
        }

        public string EdmxPath { get; set; }

        public Func<string, string> PlurialRule
        {
            get {return EDMDesigner.Business.Util.Configuration.Instance.PlurialRule;}
            set { EDMDesigner.Business.Util.Configuration.Instance.PlurialRule = value; }
        }
    }
}
